let nums = [5, 7, 7, 8, 8, 10]
let arr = nums.splice(2, 3)
console.log(arr);
console.log(nums);

